package com.ruoyi.compensationManagement.service;

import java.util.List;
import com.ruoyi.compensationManagement.domain.CompensationSalarySetting;

/**
 * 薪级薪资设置Service接口
 * 
 * @author ruoyi
 * @date 2022-10-05
 */
public interface ICompensationSalarySettingService 
{
    /**
     * 查询薪级薪资设置
     * 
     * @param payId 薪级薪资设置主键
     * @return 薪级薪资设置
     */
    public CompensationSalarySetting selectCompensationSalarySettingByPayId(Long payId);

    /**
     * 查询薪级薪资设置列表
     * 
     * @param compensationSalarySetting 薪级薪资设置
     * @return 薪级薪资设置集合
     */
    public List<CompensationSalarySetting> selectCompensationSalarySettingList(CompensationSalarySetting compensationSalarySetting);

    /**
     * 新增薪级薪资设置
     * 
     * @param compensationSalarySetting 薪级薪资设置
     * @return 结果
     */
    public int insertCompensationSalarySetting(CompensationSalarySetting compensationSalarySetting);

    /**
     * 修改薪级薪资设置
     * 
     * @param compensationSalarySetting 薪级薪资设置
     * @return 结果
     */
    public int updateCompensationSalarySetting(CompensationSalarySetting compensationSalarySetting);

    /**
     * 批量删除薪级薪资设置
     * 
     * @param payIds 需要删除的薪级薪资设置主键集合
     * @return 结果
     */
    public int deleteCompensationSalarySettingByPayIds(Long[] payIds);

    /**
     * 删除薪级薪资设置信息
     * 
     * @param payId 薪级薪资设置主键
     * @return 结果
     */
    public int deleteCompensationSalarySettingByPayId(Long payId);

    /**
     * 获取薪级薪资及子节点
     */
    public List<CompensationSalarySetting> selectCompensationSalarySettingAndChildren();

    /**
     * 根据用户id查询薪级薪资设置
     *
     * @param userId 用户id
     * @return 薪级薪资设置
     */
    public CompensationSalarySetting selectCompensationSalarySettingByUserId(Long userId);

    /**
     * 根据当前pid，查找升级后pid
     * @param payId 当前pid
     * @return 升级后的pid，没有返回0
     */
    public Long getUpPayScale(Long payId);

}
